package com.itheima.dto;


import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.common.BasePageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <h1>消息dto</h1>
 *
 * @author <a href="515857087@qq.com">叶世铭</a>
 * @since 2022/11/1
 */
@Data
@ApiModel("消息dto")
public class NewsDto extends BasePageParam {
    private static final long serialVersionUID = 8370014207185383745L;

    @ApiModelProperty(value = "聊天对象id",required = true)
    private String userId;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
